package house.jc.engine.execute.eventbus.publisher;

import java.io.Serializable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.gitee.hermer.boot.jee.commons.exception.PaiUException;
import com.gitee.hermer.engine.jars.app.sdk.eventbus.EngineAppEventBusSender;

import house.jc.engine.execute.eventbus.sdk.annotation.OnEvent;
import house.jc.event.center.core.domain.EventType;

@Component
public class EngineEventPublisher implements IEngineHandleEventPublisher{

	@Autowired
	private EngineAppEventBusSender appEventBusSender;
	
	@Override
	public void sendQueueEngineHandleEvent(String eventName, Serializable... args) throws PaiUException {
		appEventBusSender.sendQueueEngineHandleEvent(eventName, args);
	}

	@Override
	public void sendBroadcastEngineHandleEvent(String eventName, Serializable... args) throws PaiUException {
		appEventBusSender.sendBroadcastEngineHandleEvent(eventName, args);
	}
	
	
	

}
